<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./qs.js"></script>
  <script src="./util.js"></script>
</head>
<body>
  <!-- 登录 -->
  <button onclick="toLogin()">登录</button>
  <!-- 获取轮播图的数据 -->
  <button onclick="getDate()">获取数据</button>
  <script>
    // 登录
    function toLogin() {
      // 设置参数
      var params = {
        username:'admin1',
        password: '123321'
      }
      login(params)
    }
    // 获取数据
    function getDate() {
      myAjax.get('/carousel/findAll', function (res) {
        console.log(res);
      }, function (err) {
        console.log(err);
      })
    }
  </script>
</body>
</html>